package com.mybatis.study.test.controllerTest;

import com.mybatis.study.test.model.UserInfo;
import com.mybatis.study.test.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * program: MybatisStudy
 * <p>
 * description: 控制层
 * <p>
 * author: xiaoxie
 * <p>
 * create: 2024-07-21 22:33
 **/
@RequestMapping("/user")
@RestController
public class UserInfoController {

    @Autowired
    private UserInfoService userInfoService;
    @RequestMapping("/selectAll")
    public List<UserInfo> selectAll() {
        return userInfoService.selectAll();
    }
}
